from rest_framework.views import APIView


class BorrowView(APIView):
    def post(self, request):
        user = request.data.get('user')
        book= request.data.get('name')